import http from '@/utils/request';

// 获取短信验证码
export const getSmsCodeApi = (phone: string) => {
    return http.get('/resource/sms/code', { phonenumber: phone });
};

// 校验短信验证码
export const verifySmsCodeApi = (phone: string, code: string) => {
    return http.get('/resource/sms/verify', { phonenumber: phone, code });
};
